package com.oa.hyperion.service.impl;

import com.oa.hyperion.entity.Role;
import com.oa.hyperion.repository.PostRoleMapper;
import com.oa.hyperion.service.PostRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 * @date 2022年01月19日 10:30
 */
@Service
public class PostRoleServiceImpl implements PostRoleService {
    private final PostRoleMapper postRoleMapper;

    public PostRoleServiceImpl(PostRoleMapper postRoleMapper) {
        this.postRoleMapper = postRoleMapper;
    }

    @Override
    public List<Role> findRoleByPost(int id) {
        return postRoleMapper.findRoleByPost(id);
    }
}
